// @ts-ignore
/* eslint-disable */
import request from '@/request';

/** addTheater POST /api/theater/add */
export async function addTheaterUsingPost(
  body: API.TheaterAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/theater/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteTheater POST /api/theater/delete */
export async function deleteTheaterUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/theater/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** editTheater POST /api/theater/edit */
export async function editTheaterUsingPost(
  body: API.TheaterEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/theater/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getTheaterVOById GET /api/theater/get/vo */
export async function getTheaterVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTheaterVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseTheaterVO_>('/api/theater/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listTheaterByPage POST /api/theater/list/page */
export async function listTheaterByPageUsingPost(
  body: API.TheaterQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTheater_>('/api/theater/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listTheaterVOByPage POST /api/theater/list/page/vo */
export async function listTheaterVoByPageUsingPost(
  body: API.TheaterQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTheaterVO_>('/api/theater/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateTheater POST /api/theater/update */
export async function updateTheaterUsingPost(
  body: API.TheaterUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/theater/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
